/**
 * @author momoko
 */
function ZShape(map)
{
	this.$super = Shape;
	this.$super(map);
	
	this.color = "#00FF00";
	this.matrixUnit = 3;
	this.keyCoordinations = [];
	this.map = map;
	
	
	this.init = function()
	{
		var position = this.getInitPosition();
		
		this.keyCoordinations.push([new Coordination(0,position,1),new Coordination(0,position+1,1),new Coordination(0,position+2,0)]);
		this.keyCoordinations.push([new Coordination(1,position,0),new Coordination(1,position+1,1),new Coordination(1,position+2,1)]);
		this.keyCoordinations.push([new Coordination(2,position,0),new Coordination(2,position+1,0),new Coordination(2,position+2,0)]);
		//this.overrideProcess();
	}
	var flag = false;
	this.transform = function()
	{
		if(flag)
		{
			flag = false;
			return this.antiRotate();
		}
		else
		{
			flag = true;
			return this.rotate();		
		}
	}
	
}
ZShape.prototype = new Shape();
